package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserSubscribe;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class SubscribeBussiness {
    public static Map<Integer, UserSubscribe> getUserSubscribeMap(long userId) {
        return DaoHelper.getUserSubscribeDaoImpl().getUserSubscribeMap(userId);
    }

    public static boolean addUserSubscribe(UserSubscribe data) {
        return DaoHelper.getUserSubscribeDaoImpl().add(data);
    }

    public static boolean updateUserSubscribe(UserSubscribe data) {
        return DaoHelper.getUserSubscribeDaoImpl().update(data);
    }
}
